<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
<script type="text/javascript" src="/js/jquery-1.9.1.js"></script>
</head>
<body>
	<form action="/demo/LoginServlet" method="post">
		<hr>
		用户名:<input type="text" name="uname"><br> 密码:<input
			type="password" name="pwd" /><br>
		<hr> 
		<input type="submit" value="登录">
	</form>
	<button id="btn">注册</button>
</body>

<script type="text/javascript">
	var btn = document.getElementById("btn");
	btn.onclick = function() {
		window.self.location.href = "Regist.jsp";
	}
</script>
</html>